package com.dondedesigns.eh.persistence;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table (name="PERMISSIONS")
public class Permissions {
	/*SHOOTERS (0L, "See Shooters list"),
	UGNAMES (1L, "See ug names"),
	UGSHOOTERS (2L, "See ug shooters names"),
	BULLETS (3L, "See bullets amount"),
	USERS (4L, "Allow users administration");*/
	
	@Id @GeneratedValue
	@Column (name="ID_PERMISSIONS")
	private Long id;
	
	@Column (name="PERMISSION")
	private String permission;
	
	@Column (name="DESCRIPTION")
	private String description;
	
	public Permissions() {
		permission = "";
	}
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getPermission() {
		return permission;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	@Override
	public String toString() {
		return description;
	}
}
